/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wiai.untl.core.dao.jpa;

import com.wiai.untl.core.dao.GedungDAO;
import com.wiai.untl.core.dao.GeneralDAO;
import com.wiai.untl.core.entity.Gedung;
import java.util.List;

/**
 *
 * @author Hendro Steven
 */
public class GedungDAOImpl extends GeneralDAOImpl implements GedungDAO{

    @Override
    public List<Gedung> getAllGedung() {
        return getJpaTemplate().find("Select g From Gedung g");
    }

    @Override
    public Gedung getById(long id) {
        return (Gedung)getJpaTemplate().find(Gedung.class, id);
    }
    
}
